<html>
<head>
	<title>Excersise 1</title>
	<link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
	<script>

	function ReverseStr(inStr)
	{
		var  str = new String(inStr);
		var revStr = new String('');
		var i;
		for(i=str.length-1;i>=0;i--)
		{
			revStr = revStr + str[i];
		}
		jsConsole.write("the input string is: " + str + ", and reverse string is: ");
		return jsConsole.writeLine(revStr)
	}
ReverseStr('pesho');
ReverseStr('mech');
ReverseStr('forza Milan');
	</script>
</body>
</html>
